from utils.common_logger import logger
import docker

def test_docker_connection():
    try:
        client = docker.from_env()
        logger.info("Docker connection successful.")
        containers = client.containers.list()
        logger.info(f"Running containers: {[container.name for container in containers]}")
    except Exception as e:
        logger.error(f"Docker connection failed: {e}")


test_docker_connection()
